Skip to content

add local swiftlint analyzer script to mimic CI + add to gradlew#2135

Merged
dayaffe merged 5 commits intomainfrom
day/swiftlint-analyzer
Apr 8, 2026
Merged

add local swiftlint analyzer script to mimic CI + add to gradlew#2135
dayaffe merged 5 commits intomainfrom
day/swiftlint-analyzer

Conversation

@dayaffe
Copy link
Copy Markdown
Contributor

@dayaffe dayaffe commented Apr 6, 2026

./gradlew swiftlint          # full CI flow: standard lint + compile + analyze
./gradlew swiftlintFormat    # same but autofixes what it can
./gradlew swiftlintAnalyze   # just the compile + analyze pass

Issue #

Description of changes

New/existing dependencies impact assessment, if applicable

Conventional Commits

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dayaffe dayaffe requested a review from a team as a code owner April 6, 2026 20:49
Copy link
Copy Markdown
Contributor

@jbelkins jbelkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See question inline

description = "Run swiftlint analyzer only (requires compilation)."
group = "Verification"
commandLine("bash", "scripts/swiftlint-ci.sh", "--analyze-only")
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've never had Gradle tasks for swiftlint before... is there a reason we're adding them versus just calling the script directly?

Copy link
Copy Markdown
Contributor Author

@dayaffe dayaffe Apr 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it would make it easy/consistent to run since we already use a gradle task for ktlint (note this is just for local use and CI is not using it)

@dayaffe dayaffe merged commit d302900 into main Apr 8, 2026
31 checks passed
@dayaffe dayaffe deleted the day/swiftlint-analyzer branch April 8, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants